Hi Jochen,

Have you tried to use Symfony YAML component (
http://symfony.com/doc/master/components/yaml/introduction.html)?

Specifically in the section "Strings" for the "The YAML Format" (
http://symfony.com/doc/current/components/yaml/yaml_format.html#strings).


I remember that Symfony started to use YML files in the first versions of
the framework a long long time ago...


William G. Comnisky
+64 27 373 9438

On 12 July 2016 at 16:33, Jochen Daum <[email protected]> wrote:

> Hi again,
>
> On 12 July 2016 at 15:25, Ivan Kurnosov <[email protected]> wrote:
> > Yep, as per the standard that's sufficient. I must admit though - that
> > particular implementations might not respect it fully and require
> something
> > extra.
>
> I can confirm that in Ansible everything works, apart from the forward
> slash. I think I covered all other characters from my keyboard:
>
> test: "a<>?.,:;'-=_+b*()c&d{}\"e^f[]!@g%h\\i$j"
>
> I'm following up here now: http://stackoverflow.com/q/38320077/123594
>
> Thanks again!
>
> Kind Regards,
>
> Jochen
>
>
>
> >
> > On 12 July 2016 at 15:21, Jochen Daum <[email protected]> wrote:
> >>
> >> Thanks Ivan,
> >>
> >> On 12 July 2016 at 14:55, Ivan Kurnosov <[email protected]> wrote:
> >> > http://www.yaml.org/spec/1.2/spec.html#id2776092
> >> >
> >> > The standard provides all the requirements for escaping.
> >>
> >> So for escaping a password of printable ASCII characters I need to
> >> escape double quote, slash and backslash only, do I understand this
> >> right?
> >>
> >> Kind Regards,
> >>
> >> Jochen
> >>
> >>
> >>
> >> >
> >> > Using `base64` is surely not a solution (for the problem).
> >> >
> >> > On 12 July 2016 at 14:54, anru chen <[email protected]> wrote:
> >> >>
> >> >> just use base64 encode
> >> >>
> >> >> On 12 July 2016 at 14:50, Jochen Daum <[email protected]> wrote:
> >> >>>
> >> >>> Hi,
> >> >>>
> >> >>> has anyone seen an online converter or script to encode strings with
> >> >>> special characters as yaml strings? I thought it was as simple as
> >> >>> placing \ in front of " and \ and placing the string in double
> quotes,
> >> >>> however it seems {} and other characters also need encoding?
> >> >>>
> >> >>> This is to place complex passwords inside an ansible vault
> >> >>>
> >> >>> --
> >> >>> Kind Regards,
> >> >>>
> >> >>> Jochen Daum
> >> >>>
> >> >>> P.S.: Is there anything else
> https://www.automatem.co.nz/can-help.html
> >> >>> with?
> >> >>>
> >> >>> "There is no shortcut to anywhere worth going" - Beverly Sills
> >> >>>
> >> >>> Automatem Ltd
> >> >>> Tauranga: +64 7 281 1289
> >> >>> Auckland: +64 9 630 3425
> >> >>> Mobile: +64 21 567 853
> >> >>> Email: [email protected]
> >> >>> Website: www.automatem.co.nz
> >> >>> Skype: jochendaum
> >> >>> http://nz.linkedin.com/in/automatem
> >> >>> http://twitter.com/automatem
> >> >>>
> >> >>> --
> >> >>> --
> >> >>> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> >> >>> To post, send email to [email protected]
> >> >>> To unsubscribe, send email to
> >> >>> [email protected]
> >> >>> ---
> >> >>> You received this message because you are subscribed to the Google
> >> >>> Groups
> >> >>> "NZ PHP Users Group" group.
> >> >>> To unsubscribe from this group and stop receiving emails from it,
> send
> >> >>> an
> >> >>> email to [email protected].
> >> >>> For more options, visit https://groups.google.com/d/optout.
> >> >>
> >> >>
> >> >> --
> >> >> --
> >> >> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> >> >> To post, send email to [email protected]
> >> >> To unsubscribe, send email to
> >> >> [email protected]
> >> >> ---
> >> >> You received this message because you are subscribed to the Google
> >> >> Groups
> >> >> "NZ PHP Users Group" group.
> >> >> To unsubscribe from this group and stop receiving emails from it,
> send
> >> >> an
> >> >> email to [email protected].
> >> >> For more options, visit https://groups.google.com/d/optout.
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > With best regards, Ivan Kurnosov
> >> >
> >> > --
> >> > --
> >> > NZ PHP Users Group: http://groups.google.com/group/nzphpug
> >> > To post, send email to [email protected]
> >> > To unsubscribe, send email to
> >> > [email protected]
> >> > ---
> >> > You received this message because you are subscribed to the Google
> >> > Groups
> >> > "NZ PHP Users Group" group.
> >> > To unsubscribe from this group and stop receiving emails from it, send
> >> > an
> >> > email to [email protected].
> >> > For more options, visit https://groups.google.com/d/optout.
> >>
> >>
> >>
> >> --
> >> Kind Regards,
> >>
> >> Jochen Daum
> >>
> >> P.S.: Is there anything else https://www.automatem.co.nz/can-help.html
> >> with?
> >>
> >> "There is no shortcut to anywhere worth going" - Beverly Sills
> >>
> >> Automatem Ltd
> >> Tauranga: +64 7 281 1289
> >> Auckland: +64 9 630 3425
> >> Mobile: +64 21 567 853
> >> Email: [email protected]
> >> Website: www.automatem.co.nz
> >> Skype: jochendaum
> >> http://nz.linkedin.com/in/automatem
> >> http://twitter.com/automatem
> >>
> >> --
> >> --
> >> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> >> To post, send email to [email protected]
> >> To unsubscribe, send email to
> >> [email protected]
> >> ---
> >> You received this message because you are subscribed to the Google
> Groups
> >> "NZ PHP Users Group" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to [email protected].
> >> For more options, visit https://groups.google.com/d/optout.
> >
> >
> >
> >
> > --
> > With best regards, Ivan Kurnosov
> >
> > --
> > --
> > NZ PHP Users Group: http://groups.google.com/group/nzphpug
> > To post, send email to [email protected]
> > To unsubscribe, send email to
> > [email protected]
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "NZ PHP Users Group" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Kind Regards,
>
> Jochen Daum
>
> P.S.: Is there anything else https://www.automatem.co.nz/can-help.html
> with?
>
> "There is no shortcut to anywhere worth going" - Beverly Sills
>
> Automatem Ltd
> Tauranga: +64 7 281 1289
> Auckland: +64 9 630 3425
> Mobile: +64 21 567 853
> Email: [email protected]
> Website: www.automatem.co.nz
> Skype: jochendaum
> http://nz.linkedin.com/in/automatem
> http://twitter.com/automatem
>
> --
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]
> ---
> You received this message because you are subscribed to the Google Groups
> "NZ PHP Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--- 
You received this message because you are subscribed to the Google Groups "NZ 
PHP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to