This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Decoder for passwords created by multiuser.library of Amiga MultiUser muFS filesystem (ACrypt() encoded, AKA AS225r2 format). | |
# Copyright (C) 2015 Patrik Rak (patrik@raxoft.cz) | |
# This source code is released under the MIT license. | |
def decode( password, user, base = 'A' ) | |
r = 53 | |
s = password.bytes.map{ |x| x - 'A'.ord } + [ 0 ] * 12 |