# Encode username and password in Linux different from Postman

**URL:** <https://community.postman.com/t/encode-username-and-password-in-linux-different-from-postman/28541>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [October 7, 2021, 12:15pm UTC](https://community.postman.com/t/encode-username-and-password-in-linux-different-from-postman/28541 "2021-10-07T12:15:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trinhdangphong1606](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/trinhdangphong1606/32/9974_2.png) [@trinhdangphong1606](https://community.postman.com/u/trinhdangphong1606)\
**Post date:** [October 7, 2021, 12:15pm UTC](https://community.postman.com/t/encode-username-and-password-in-linux-different-from-postman/28541/1 "2021-10-07T12:15:57Z")

</div>

Hi all,

I have a problem when I use basic auth:

- When I use basic auth in Postman, username and password will respond string 1 (this string is right and I can use this to work).
- When I use encode with terminal Linux (CentOS7), it will respond string 2.  
String 2 is different from string 1. Same input but different output

 ![123](https://us1.discourse-cdn.com/getpostman/original/2X/9/90674c665e23c0cac6f5e628c0d924b9dbc0a981.png)

Example you can try:  
username:MT6NqGSTPKjsMjfvFg  
password:Ub8LBR2YkNWP2Y4VwsMJVsp3SHGdNR28

Please help me or give me advice on how can I encode username and password in CentOS the same with Postman.  
Warm Regards.  
PhongTD
