sha1ext
std / sha1 extension
Summary
| Latest Version | Unknown |
|---|---|
| License | Apache License 2.0 |
| CI Status | Passing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install sha1ext
choosenim install sha1ext
git clone https://github.com/CORDEA/sha1ext
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| sha1ext | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/CORDEA/sha1ext |
|---|---|
| Homepage | https://github.com/CORDEA/sha1ext |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
sha1ext
Extension of std / sha1 mainly for developers using python, ruby etc.
Usage
- Digest
digest("nim")
# or
var sha1 = newSha1Digest()
sha1.update("nim")
sha1.digest()
- Hex
hexdigest("nim")
# or
var sha1 = newSha1Digest()
sha1.update("nim")
sha1.hexdigest()
- Base64
base64digest("nim")
# or
var sha1 = newSha1Digest()
sha1.update("nim")
sha1.base64digest()
- Sha1Digest
The following two will be the same result.
var sha1 = newSha1Digest()
sha1.update("nim")
sha1.base64digest()
var sha1 = newSha1Digest()
sha1.update('n')
sha1.update('i')
sha1.update('m')
sha1.base64digest()