security now working. output is no longer a shitton of ciphertext.