Did you manage to get a response from Revalin?
I am having a similar wallet passphrase problem , a website referenced Rvelin's code but it returned an error when I run it in Ruby compiler and I can figure out the problem.
Same issue I cannot message him directly so would appreciate if anyone can help contact Revalin and get him to allow newbie messages or help resolve the code error.
I just need the code to generate the variations from what I believe I set the passphrase to into a text file so I can use another s/w to input it into the coins wallet, it must definitely be a typo or double caps error.
#!/usr/bin/ruby -w
#list of potentional passwords
passphraseList = ['possibility1','possibility2','possibility3']
$allPhrases=''
$countList=0
passphraseList.each do |passphrase|
def display(phrase)
if phrase.length != 1
$allPhrases<
end
$countList += 1
end
def scramble(passphrase)
characters = " !\"\#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
list = []
# transpose adjacent chars
(passphrase.length - 1).times do |i|
testphrase = passphrase.dup
testphrase = passphrase[i+1]
testphrase[i+1] = passphrase
list << testphrase
end
# delete one char
passphrase.length.times do |i|
testphrase = passphrase.dup
testphrase = testphrase[0,i] + testphrase[(i+1)..-1]
list << testphrase
end
# substitutute one char
passphrase.length.times do |i|
characters.chars.each do |c|
testphrase = passphrase.dup
testphrase = c
list << testphrase
end
end
# insert one char
(passphrase.length + 1).times do |i|
characters.chars.each do |c|
testphrase = passphrase.dup
testphrase.insert(i, c)
list << testphrase
end
end
return list.uniq
end
list1 = scramble(passphrase)
list1.each { |i| display i }
print 'total count'
print $countList
fo = open("wordlist.txt","w")
fo.write( $allPhrases )
fo.close()
end
exit
xxxxxxxxxxxxx Errors returned in compiler xxxxxxxxxxxxxxxxx
$ruby main.rb
total count2373total count4746total count7119main.rb:7: warning: method redefined; discarding old display
main.rb:7: warning: previous definition of display was here
main.rb:15: warning: method redefined; discarding old scramble
main.rb:15: warning: previous definition of scramble was here
main.rb:7: warning: method redefined; discarding old display
main.rb:7: warning: previous definition of display was here
main.rb:15: warning: method redefined; discarding old scramble
main.rb:15: warning: previous definition of scramble was here
Any help will be greatly appreciated.
Regards.
Gabs.