Merge pull request #1055 from Shawock/master
update expired scrypt link
This commit is contained in:
@@ -75,7 +75,7 @@ Very secure systems utilize hash algorithms that take into account the time and
|
||||
|
||||
In Go, it's recommended that you use the `scrypt` package, which is based on the work of the famous hacker Colin Percival (of the FreeBSD backup service Tarsnap).
|
||||
|
||||
The packge's source code can be found at the following link: http://code.google.com/p/go/source/browse?repo=crypto#hg%2Fscrypt
|
||||
The packge's source code can be found at the following link: https://github.com/golang/crypto/tree/master/scrypt
|
||||
|
||||
Here is an example code snippet which can be used to obtain a derived key for an AES-256 encryption:
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ Go言語のこの三種類の暗号化アルゴリズムの実装は以下の通
|
||||
|
||||
ここでは`scrypt`の方法をおすすめしましょう。scryptは有名なFreeBSDハッカーであるColin Percivalが彼の予備のサービスとしてTarsnapで開発しました。
|
||||
|
||||
現在Go言語でサポートされているライブラリhttp://code.google.com/p/go/source/browse?repo=crypto#hg%2Fscrypt
|
||||
現在Go言語でサポートされているライブラリhttps://github.com/golang/crypto/tree/master/scrypt
|
||||
|
||||
dk := scrypt.Key([]byte("some password"), []byte(salt), 16384, 8, 1, 32)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ Very secure systems utilize hash algorithms that take into account the time and
|
||||
|
||||
In Go, it's recommended that you use the `scrypt` package, which is based on the work of the famous hacker Colin Percival (of the FreeBSD backup service Tarsnap).
|
||||
|
||||
The packge's source code can be found at the following link: http://code.google.com/p/go/source/browse?repo=crypto#hg%2Fscrypt
|
||||
The packge's source code can be found at the following link: https://github.com/golang/crypto/tree/master/scrypt
|
||||
|
||||
Here is an example code snippet which can be used to obtain a derived key for an AES-256 encryption:
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ last :=fmt.Sprintf("%x", h.Sum(nil))
|
||||
|
||||
这里推荐`scrypt`方案,scrypt是由著名的FreeBSD黑客Colin Percival为他的备份服务Tarsnap开发的。
|
||||
|
||||
目前Go语言里面支持的库http://code.google.com/p/go/source/browse?repo=crypto#hg%2Fscrypt
|
||||
目前Go语言里面支持的库 https://github.com/golang/crypto/tree/master/scrypt
|
||||
```Go
|
||||
|
||||
dk := scrypt.Key([]byte("some password"), []byte(salt), 16384, 8, 1, 32)
|
||||
|
||||
Reference in New Issue
Block a user