# Tailf aes encryption

**URL:** https://dmap-community.ductus.global/t/tailf-aes-encryption/3677
**Category:** YANG
**Created:** [May 26, 2021, 12:06pm UTC](https://dmap-community.ductus.global/t/tailf-aes-encryption/3677 "2021-05-26T12:06:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Manish](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Manish](https://dmap-community.ductus.global/u/Manish)
#### Post date: [May 26, 2021, 12:06pm UTC](https://dmap-community.ductus.global/t/tailf-aes-encryption/3677/1 "2021-05-26T12:06:14Z")

</div>

Hello experts,

While I am passing password like **$abc** i was getting error on cli due to $ symbol in front of the text  
Can anyone please share your idea on that.

leaf password\_val {  
description “Password. Use of % character must be escaped with (Max Size -127)”;  
type tailf:aes-cfb-128-encrypted-string {  
length “1…200”;  
}  
}

Thanks

---

<div class="post-metadata">

### Author: ![mvf](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mvf/32/182_2.png) [@mvf](https://dmap-community.ductus.global/u/mvf)
#### Post date: [May 27, 2021, 6:23am UTC](https://dmap-community.ductus.global/t/tailf-aes-encryption/3677/2 "2021-05-27T06:23:27Z")

</div>

You can enter any cleartext value either directly or in the form `$0$cleartext`, so for example `$0$$abc`. The prefix `$0$` indicates cleartext; when you read such value, you get something like `$8$longencryptedpassword`. That’s why you could not enter a value starting with `$`, this character has a special meaning at the beginning of the string.

Read the documentation for the type - it refers to the type `des3-cbc-encrypted-string` where this prefixing is explained in more detail.
