用一段密語加密作為private key的安全性 - 數位貨幣

By Todd Johnson
at 2019-06-24T16:51
at 2019-06-24T16:51
Table of Contents
※ 引述《dmichael (五行陰陽劍)》之銘言:
: 想跟密碼學比較強的大大討論一下
: 如果用一段明文密語用aes或其他加密演算法
: 加密後取其中幾位轉成hex
: 作為private key
: 這樣做跟全random 產生的安全性應該不相上下吧!?
: 畢竟現在的加密演算法 都被證明 只能被旁道攻擊和社會工程攻擊
: 理論上這樣產生的密鑰既安全又不會忘對吧
: 有大大能指點下嗎
請看Mastering Bitcoin第四章
https://www.oreilly.com/library/view/mastering-bitcoin/9781491902639/ch04.html
In programming terms, this is usually achieved by feeding a larger string of
random bits, collected from a cryptographically secure source of randomness,
into the SHA256 hash algorithm that will conveniently produce a 256-bit
number. If the result is less than n - 1, we have a suitable private key.
Otherwise, we simply try again with another random number.
務實上確實可以把一大段隨機產生的字串用SHA256之類的hash演算法
轉換成一個256bit的數字來當作private key
但這邊說的是 一大段隨機產生的字串
如果你想用的是書上的一段話之類的話 可能就不一定適合了
--
: 想跟密碼學比較強的大大討論一下
: 如果用一段明文密語用aes或其他加密演算法
: 加密後取其中幾位轉成hex
: 作為private key
: 這樣做跟全random 產生的安全性應該不相上下吧!?
: 畢竟現在的加密演算法 都被證明 只能被旁道攻擊和社會工程攻擊
: 理論上這樣產生的密鑰既安全又不會忘對吧
: 有大大能指點下嗎
請看Mastering Bitcoin第四章
https://www.oreilly.com/library/view/mastering-bitcoin/9781491902639/ch04.html
In programming terms, this is usually achieved by feeding a larger string of
random bits, collected from a cryptographically secure source of randomness,
into the SHA256 hash algorithm that will conveniently produce a 256-bit
number. If the result is less than n - 1, we have a suitable private key.
Otherwise, we simply try again with another random number.
務實上確實可以把一大段隨機產生的字串用SHA256之類的hash演算法
轉換成一個256bit的數字來當作private key
但這邊說的是 一大段隨機產生的字串
如果你想用的是書上的一段話之類的話 可能就不一定適合了
--
Tags:
數位貨幣
All Comments

By Rae
at 2019-06-26T04:42
at 2019-06-26T04:42

By Brianna
at 2019-06-29T08:54
at 2019-06-29T08:54

By Lucy
at 2019-07-03T16:20
at 2019-07-03T16:20

By Leila
at 2019-07-03T18:44
at 2019-07-03T18:44
Related Posts
用一段密語加密作為private key的安全性

By Necoo
at 2019-06-24T14:11
at 2019-06-24T14:11
有關挖礦的問題

By James
at 2019-06-24T06:55
at 2019-06-24T06:55
將幣寶BCHABC轉到幣安有問題

By Kristin
at 2019-06-23T20:12
at 2019-06-23T20:12
臉書幣可在台灣用? 涉及這兩件事 必須要

By Ursula
at 2019-06-23T16:17
at 2019-06-23T16:17
請問如何購買比特幣比較划算

By Jake
at 2019-06-23T13:29
at 2019-06-23T13:29