An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
what are your use cases?
in general the server should never send sensitive data to the client (it should only accept). this requires masking at the server.
in databases you can use encryption and access rules to protect.
while not a best practice if you need to round trip security data, then encrypt and store in a hidden field.