fix error on basic encryption (without salt) and update jasmine test