Formatting changes.
This commit is contained in:
parent
f9de09f2d7
commit
497af4b401
@ -9,7 +9,6 @@ def check_wiped(buf : Bytes)
|
|||||||
if b != 0_u8
|
if b != 0_u8
|
||||||
puts "not wiped #{buf.inspect}"
|
puts "not wiped #{buf.inspect}"
|
||||||
# raise "not wiped #{buf.inspect}"
|
# raise "not wiped #{buf.inspect}"
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@ module Sodium::Password
|
|||||||
# Often used to store password hashes on a server and authenticate clients against the stored hash.
|
# Often used to store password hashes on a server and authenticate clients against the stored hash.
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# ```crystal
|
# ```
|
||||||
# pwhash = Sodium::Password::Hash.new
|
# pwhash = Sodium::Password::Hash.new
|
||||||
#
|
#
|
||||||
# pwhash.mem = Sodium::Password::MEMLIMIT_MIN
|
# pwhash.mem = Sodium::Password::MEMLIMIT_MIN
|
||||||
|
@ -5,7 +5,7 @@ require "./nonce"
|
|||||||
module Sodium
|
module Sodium
|
||||||
# [https://libsodium.gitbook.io/doc/secret-key_cryptography](https://libsodium.gitbook.io/doc/secret-key_cryptography)
|
# [https://libsodium.gitbook.io/doc/secret-key_cryptography](https://libsodium.gitbook.io/doc/secret-key_cryptography)
|
||||||
#
|
#
|
||||||
# ```crystal
|
# ```
|
||||||
# box = Sodium::SecretBox.new
|
# box = Sodium::SecretBox.new
|
||||||
# message = "foobar"
|
# message = "foobar"
|
||||||
# encrypted, nonce = box.encrypt message
|
# encrypted, nonce = box.encrypt message
|
||||||
|
Loading…
Reference in New Issue
Block a user