Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
monocypher
v3.1.2
Crypto
Ed25519PublicSigningKey
Ed25519Signature
Header
Nonce
PublicKey
PublicSigningKey
Salt
SecretKey
Signature
StaticRecord
SymmetricKey
MonoCypher
Generated using Crystal 1.14.0
2024-11-26 10:31:36 UTC
struct
Crypto::
SecretKey
Crypto::SecretKey
Struct
Value
Object
Defined in:
monocypher.cr:10
monocypher.cr:17
Constructors
.new
(s : String)
.new
.new
(*, password : String, salt : Salt)
Class Method Summary
.from_bytes
(raw : Bytes)
.size
Instance Method Summary
#compare
(other) : Bool
#reroll
#to_slice
#to_unsafe
: StaticArray(UInt8, 32)
Constructor Detail
def self.
new
(s : String)
#
[
View source
]
def self.
new
#
[
View source
]
def self.
new
(*, password : String, salt :
Salt
)
#
[
View source
]
Class Method Detail
def self.
from_bytes
(raw : Bytes)
#
[
View source
]
def self.
size
#
[
View source
]
Instance Method Detail
def
compare
(other) : Bool
#
[
View source
]
def
reroll
#
[
View source
]
def
to_slice
#
[
View source
]
def
to_unsafe
: StaticArray(UInt8, 32)
#
[
View source
]