Actually, I think you misunderstood binary file, or binary in general. Using
binmode or
pack 'A' doesn't encrypt anything. Look at the
Crypt modules for encrpytion. Actually, if you only need to verify a user-submitted password against this password, you should be looking at hashing instead of encryption. The
Digest modules are then the ones to use.