# Private variable on blockchain as password

**URL:** <https://forum.openzeppelin.com/t/private-variable-on-blockchain-as-password/26657>\
**Category:** Smart Contracts\
**Tags:** erc721\
**Created:** [March 23, 2022, 9:37pm UTC](https://forum.openzeppelin.com/t/private-variable-on-blockchain-as-password/26657 "2022-03-23T21:37:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luex](https://avatars.discourse-cdn.com/v4/letter/l/eb8c5e/32.png) [@Luex](https://forum.openzeppelin.com/u/Luex)\
**Post date:** [March 23, 2022, 9:37pm UTC](https://forum.openzeppelin.com/t/private-variable-on-blockchain-as-password/26657/1 "2022-03-23T21:37:35Z")

</div>

Hey guys,

I'm onto a NFT project, and want the winner to see a password. What is best practice:  
Safe a value on the blockchain and make it accessible only to the winners owner address (Is it readable for everyone because of the blockchain being public?). Or should I safe the value in the Frontend and make it accessible to the winner when he has won (Is it possible to read a value in the FrontEnd using ReactJS?). Thanks for your opinions 🙂
