crypto for SP Language
Cryptographic hashing and encryption primitives.
# Example
sp
import std.io;
import crypto;
fn main() -> void {
let hash = crypto.sha256("Secret Message");
println("SHA-256 digest: ${hash}");
}Cryptographic primitives including SHA-256, HMAC, AES-256-GCM, and secure random byte generation.
Cryptographic hashing and encryption primitives.
import std.io;
import crypto;
fn main() -> void {
let hash = crypto.sha256("Secret Message");
println("SHA-256 digest: ${hash}");
}Run inside any SP project directory: