What is the correct way to configure a spring TextEncryptor for use on Heroku

前端 未结 3 947
轻奢々
轻奢々 2020-12-16 22:14

I have a spring TextEncryptor defined like this



        
3条回答
  •  无人及你
    2020-12-16 22:44

    So I think I've concluded Heroku just plain doesn't support 256 bit AEP which is what the stock TextEncoders in spring-security use.

    Instead I've used the BasicTextEncryptor from the Java Simplified Encryption library as an alternative backend and implemented the TextEncryptor interface.

    It's less secure but it works. It doesn't provide a salting mechanism, though I think there are provisions for that elsewhere in the library.

    If anyone has any ideas how to get the stock encryptors working on heroku then that would still be preferable I think.

提交回复
热议问题